#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2024/07/17 08:56
# @File           : operation.py
# @IDE            : PyCharm
# @desc           : 查询参数-类依赖项

from fastapi import Depends
from core.dependencies import Paging, QueryParams


class ApiCallParams(QueryParams):
    """
    列表分页
    """
    def __init__(
            self,
            type: str = None,
            name: str = None,
            status: str = None,
            params: Paging = Depends()
    ):
        super().__init__(params)
        self.type = type
        self.name = ("like", name)
        self.status = status
